package log4j2;

import org.apache.logging.log4j.LogManager;

public class HasLogTest {

	public static void main(String[] args) {
		
		//两种方法都不管用
		System.out.println(LogManager.exists("new"));
		System.out.println(LogManager.getContext().hasLogger("tuyou"));
	}
}
